﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECCIT.Data
{
    public class DBHelperFactory
    {
        public static BaseDBHelper CreateDBHelper(DataBaseType dbType)
        {
            BaseDBHelper dbHelper = null;
            switch (dbType)
            {
                case DataBaseType.SQLServer:
                    dbHelper = new SqlHelper();
                    break;
                case DataBaseType.Oracle:
                    dbHelper = new OracleHelper();
                    break;
                case DataBaseType.OleDb:
                    dbHelper = new OleDbHelper();
                    break;
            }

            return dbHelper;
        }
    }
}
